package com.googlecode.olabs.common.client;

public class Logger {

	private static Logger s_instance = new Logger();

	public static Logger get() {
		return s_instance;
	}

	public Logger() {
	}

	public void log(String message) {
		System.err.println(message);
	}

	public void log(String message, Exception e) {
		System.err.println(message + ": " + e);
	}

	public void debug(String message) {
		debug(message, null);
	}

	public void debug(String message, Exception e) {
		if (e == null) {
			System.err.println("D|" + message);
		} else {
			System.err.println("D|" + message + ": " + e);
		}
	}
}
